package com.skyworth.web.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @author holin
 * @date 1/5/16.
 */
public class Constants {
    public static final String SECURITY_CODE_SESSION_KEY="security_code_session_key";

    public static final String SESSION_USER_KEY="login_user";

    public static final String COOKIE_USER_KEY="cookie_user";

    public static final String COOKIE_STORE_ID="cookie_store_id";

    public static final String COOKIE_PASSWORD_KEY="cookie_password";

    public static final String COOKIE_USERNAME="cookie_username";

    public static final String COOKIE_REMEMBER_ME="remember_me";

    public static final String SESSION_TOKEN="login_token";

    public static final String DEFAULT_PASSWORD="123456";

    public static final String AUTHORIZATIONINFO_PREFIX="authorizationinfo_";

    public static final String SESSION_PREFIX="session_";

    public static final String ADMIN_ROLE = "ADMIN";

    public static final String OWNER_ROLE = "STORE_OWNER";

    public static final String WAITER_ROLE = "WAITER";

    public static final String CATEGORY_ROLE = "CATEGORY";
    public static final String DISHWARE_ROLE = "DISHWARE";
    public static final String MENU_ROLE = "MENU";
    public static final String ROLE_ROLE = "ROLE";
    public static final String USER_ROLE = "USER";
    public static final String TABLE_ROLE = "TABLE";
    public static final String STORE_ROLE = "STORE";
    public static final String TABLESTATUS_ROLE = "TABLESTATUS";
    public static final String ORDER_ROLE = "ORDER";
    public static final String STATICS_ROLE = "STATICS";


    public static final int PAGE_SIZE = 10;
    public static final Map<String, String>  ROLE_MAPPER = new HashMap<String, String>(){
        {
            put("1",CATEGORY_ROLE);
            put("2",DISHWARE_ROLE);
            put("3",MENU_ROLE);
            put("4",ROLE_ROLE);
            put("5",USER_ROLE);
            put("6",TABLE_ROLE);
            put("7",STORE_ROLE);
            put("8",TABLESTATUS_ROLE);
            put("9",ORDER_ROLE);
            put("10",STATICS_ROLE);
        }
    };
}
